package com.code_g.Listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Mylistener {

    @RabbitListener(queues = "item_queue")
    public void listener(String message){
        System.out.println("接收到的消息是 "+message);
    }

}
